package com.learn.core.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * @auther CodeGenerator
 * @create 2021-03-13 19:40:17
 * @describe 课程分类表实体类
 */
@TableName("l_course_sort")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="LCourseSort对象", description="课程分类表")
public class LCourseSort implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "course_sort_id", type = IdType.AUTO)
    private Integer courseSortId;

        @ApiModelProperty(value = "课程分类名称")
        @TableField("course_sort_name")
    private String courseSortName;

        @ApiModelProperty(value = "课程分类编码")
        @TableField("course_sort_code")
    private String courseSortCode;

        @ApiModelProperty(value = "描述")
        @TableField("description")
    private String description;

        @ApiModelProperty(value = "父节点id")
        @TableField("parent_node")
    private Integer parentNode;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_user")
    private String createUser;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_user")
    private String updateUser;

    @TableField(exist = false)
    private List<LCourseSort>  chilLCourseSort;

    public List<LCourseSort> getChilLCourseSort() {
        return chilLCourseSort;
    }

    public void setChilLCourseSort(List<LCourseSort> chilLCourseSort) {
        this.chilLCourseSort = chilLCourseSort;
    }

    public Integer getCourseSortId() {
        return courseSortId;
    }

    public LCourseSort setCourseSortId(Integer courseSortId) {
        this.courseSortId = courseSortId;
        return this;
    }

    public String getCourseSortName() {
        return courseSortName;
    }

    public LCourseSort setCourseSortName(String courseSortName) {
        this.courseSortName = courseSortName;
        return this;
    }

    public String getCourseSortCode() {
        return courseSortCode;
    }

    public LCourseSort setCourseSortCode(String courseSortCode) {
        this.courseSortCode = courseSortCode;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public LCourseSort setDescription(String description) {
        this.description = description;
        return this;
    }

    public Integer getParentNode() {
        return parentNode;
    }

    public LCourseSort setParentNode(Integer parentNode) {
        this.parentNode = parentNode;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public LCourseSort setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getCreateUser() {
        return createUser;
    }

    public LCourseSort setCreateUser(String createUser) {
        this.createUser = createUser;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public LCourseSort setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public LCourseSort setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
        return this;
    }

    @Override
    public String toString() {
        return "LCourseSort{" +
        "courseSortId=" + courseSortId +
        ", courseSortName=" + courseSortName +
        ", courseSortCode=" + courseSortCode +
        ", description=" + description +
        ", parentNode=" + parentNode +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", updateTime=" + updateTime +
        ", updateUser=" + updateUser +
        "}";
    }
}